#!/usr/bin/env php
<?php

require_once __DIR__ . '/vendor/autoload.php';
require_once __DIR__ . '/support/bootstrap.php';

use Mxi\Webmanphinx\Command;
use Dotenv\Dotenv;

if (method_exists('Dotenv\Dotenv', 'createUnsafeImmutable')) {
    Dotenv::createUnsafeImmutable(base_path())->load();
} else {
    Dotenv::createMutable(base_path())->load();
}
$cli = new Command();
$cli->setName('phinx cli');
$cli->installInternalCommands();
$cli->run();
